var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.playerMessage(-1, "为了修复损毁的佛像，需要5个以上的面具。");
            cm.setPartner(1, 9112003, 80011300, 0);
            cm.addPopupSay(9111062, 1000, "嗯，我估计有5个面具就能修复一座佛像。", "", 0);
            cm.addPopupSay(9111062, 1000, "喂，我说……我从妖鬼的面具里察觉到异常的气息。搜集这些面具应该可以修复损毁的佛像。", "", 0);
            cm.dispose()
        }
    }
};